/*
 * @Author:
 * @Date: 2022-08-26 10:01:23
 * @LastEditors:
 * @LastEditTime: 2022-08-26 10:04:21
 * @FilePath: \imechos-admin\src\api\content\openAdvertising.js
 * @Description:
 *
 * Copyright (c) 2022 by  , All Rights Reserved.
 */

import request from '@/utils/request';

// 列表获取
export function listData(query) {
  return request({
    url: `/content-manager/screen-ad`,
    method: 'get',
    params: query
  });
}

// 创建
export function postAddData(form) {
  return request({
    url: `/content-manager/screen-ad`,
    method: 'post',
    data:form
  });
}

// 编辑
export function putEditData(id,form) {
  return request({
    url: `/content-manager/screen-ad/${id}`,
    method: 'put',
    data:form
  });
}

// 删除
export function deleteData(form) {
  return request({
    url: `/content-manager/screen-ad/${form.id}`,
    method: 'delete',
    data:form
  });
}

